package com.le.withMybatis.service.impl;

import com.le.withMybatis.mapper.AddressMapper;
import com.le.withMybatis.model.Address;
import com.le.withMybatis.service.AddressService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@AllArgsConstructor
public class AddressServiceImpl implements AddressService {
    private AddressMapper addressMapper;
    @Override
    public int add(Address address) {
        return addressMapper.add(address);
    }
    public int delete(Address address){
        return addressMapper.delete(address);
    }
}
